<?php
include "../include/global.php";
include "../include/function.php";
include "../include/admin_check.php";

$country_id=intval($_GET['cid']);

// ++ combox city
$sql_city="SELECT c.city_id, c.city_name FROM ".pre_table."city c
				WHERE c.country_id='".$country_id."' AND c.lang='".$lang."'";
$rs_city=execSQL($sql_city);
$cbo_city.="<select class=field name='city_id'>";
$cbo_city.='<option value="">---</option>';
while ($rows = mysql_fetch_array($rs_city)){
	$cbo_city.= '<option value="'.$rows['city_id'].'">'.$space.$rows['city_name'].'</option>';
}
$cbo_city.="</select>&nbsp;";

$cbo_city =str_replace("value=\"".$city_id."\"","value=\"".$city_id."\" selected",$cbo_city);

// -- combox city

echo $cbo_city;
?>